"""
MyPackage - 一个示例Python包
演示 __init__.py 的各种用法
"""

# 版本信息
__version__ = '1.0.0'
__author__ = 'Tutorial Author'
__email__ = 'tutorial@example.com'

# 导入核心功能
from .core import Engine, Processor
from .utils import validate_input, format_output, validate_email, get_timestamp
from .tests import run_all_tests
from .plugins import plugin_manager

# 定义公共接口
__all__ = [
    'Engine',
    'Processor',
    'validate_input',
    'format_output',
    'validate_email',
    'get_timestamp',
    'plugin_manager',
    'run_all_tests'
]

# 包级别配置
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())

# 包初始化时的消息
print(f"正在初始化 MyPackage v{__version__}...") 